import request from '@/utils/request'

// 查询专家抽取设置列表
export function listProjectexpertconfig(query) {
  return request({
    url: '/system/projectexpertconfig/list',
    method: 'get',
    params: query
  })
}

// 查询专家抽取设置详细
export function getProjectexpertconfig(id) {
  return request({
    url: '/system/projectexpertconfig/' + id,
    method: 'get'
  })
}

// 新增专家抽取设置
export function addProjectexpertconfig(data) {
  return request({
    url: '/system/projectexpertconfig',
    method: 'post',
    data: data
  })
}

// 修改专家抽取设置
export function updateProjectexpertconfig(data) {
  return request({
    url: '/system/projectexpertconfig',
    method: 'put',
    data: data
  })
}

// 删除专家抽取设置
export function delProjectexpertconfig(id) {
  return request({
    url: '/system/projectexpertconfig/' + id,
    method: 'delete'
  })
}

// 专家抽取
export function extractProjectexpertconfig(id) {
  return request({
    url: '/system/projectexpertconfig/extract',
    method: 'post',
    data: {'id':id}
  })
}
